package com.beamfield.common;

import com.beamfield.modelVo.AttendMonthVo;
import com.beamfield.modelVo.BatchAttendMonthVo;

import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;

/**
 * 考勤信息工具类
 */
public class AttendUtils {

    // 获得当前月--开始日期
    public static String getMinMonthDate(Date date) {
        SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd");
        Calendar calendar = Calendar.getInstance();
        calendar.setTime(date);
        calendar.set(Calendar.DAY_OF_MONTH, calendar.getActualMinimum(Calendar.DAY_OF_MONTH));
        return dateFormat.format(calendar.getTime())+" 00:00:00";
    }

    // 获得当前月--结束日期
    public  static String getMaxMonthDate(Date date) {
        SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd");
        Calendar calendar = Calendar.getInstance();
        calendar.setTime(date);
        calendar.set(Calendar.DAY_OF_MONTH, calendar.getActualMaximum(Calendar.DAY_OF_MONTH));
        return dateFormat.format(calendar.getTime())+" 23:59:59";
    }
    public static void setBlockDay(AttendMonthVo attendMonthVo, String time, String day) {
        Date nowDate = new Date();
        if( CommonUtils.getDateFormat(time+"01","yyyyMMdd").after(nowDate)){
            attendMonthVo.setOne(day);
        }
        if( CommonUtils.getDateFormat(time+"02","yyyyMMdd").after(nowDate)){
            attendMonthVo.setTwo(day);
        }
        if( CommonUtils.getDateFormat(time+"03","yyyyMMdd").after(nowDate)){
            attendMonthVo.setThree(day);
        }
        if( CommonUtils.getDateFormat(time+"04","yyyyMMdd").after(nowDate)){
            attendMonthVo.setFour(day);
        }
        if( CommonUtils.getDateFormat(time+"05","yyyyMMdd").after(nowDate)){
            attendMonthVo.setFive(day);
        }
        if( CommonUtils.getDateFormat(time+"06","yyyyMMdd").after(nowDate)){
            attendMonthVo.setSix(day);
        }
        if( CommonUtils.getDateFormat(time+"07","yyyyMMdd").after(nowDate)){
            attendMonthVo.setSeven(day);
        }
        if( CommonUtils.getDateFormat(time+"08","yyyyMMdd").after(nowDate)){
            attendMonthVo.setEight(day);
        }
        if( CommonUtils.getDateFormat(time+"09","yyyyMMdd").after(nowDate)){
            attendMonthVo.setNine(day);
        }
        if( CommonUtils.getDateFormat(time+"10","yyyyMMdd").after(nowDate)){
            attendMonthVo.setTen(day);
        }
        if( CommonUtils.getDateFormat(time+"11","yyyyMMdd").after(nowDate)){
            attendMonthVo.setEleven(day);
        }
        if( CommonUtils.getDateFormat(time+"12","yyyyMMdd").after(nowDate)){
            attendMonthVo.setTwelve(day);
        }
        if( CommonUtils.getDateFormat(time+"13","yyyyMMdd").after(nowDate)){
            attendMonthVo.setThirteen(day);
        }
        if( CommonUtils.getDateFormat(time+"14","yyyyMMdd").after(nowDate)){
            attendMonthVo.setFourteen(day);
        }
        if( CommonUtils.getDateFormat(time+"15","yyyyMMdd").after(nowDate)){
            attendMonthVo.setFifteen(day);
        }
        if( CommonUtils.getDateFormat(time+"16","yyyyMMdd").after(nowDate)){
            attendMonthVo.setSixteen(day);
        }
        if( CommonUtils.getDateFormat(time+"17","yyyyMMdd").after(nowDate)){
            attendMonthVo.setSeventeen(day);
        }
        if( CommonUtils.getDateFormat(time+"18","yyyyMMdd").after(nowDate)){
            attendMonthVo.setEighteen(day);
        }
        if( CommonUtils.getDateFormat(time+"19","yyyyMMdd").after(nowDate)){
            attendMonthVo.setNineteen(day);
        }
        if( CommonUtils.getDateFormat(time+"20","yyyyMMdd").after(nowDate)){
            attendMonthVo.setTwenty(day);
        }
        if( CommonUtils.getDateFormat(time+"21","yyyyMMdd").after(nowDate)){
            attendMonthVo.setTwenty_one(day);
        }
        if( CommonUtils.getDateFormat(time+"22","yyyyMMdd").after(nowDate)){
            attendMonthVo.setTwenty_two(day);
        }
        if( CommonUtils.getDateFormat(time+"23","yyyyMMdd").after(nowDate)){
            attendMonthVo.setTwenty_three(day);
        }
        if( CommonUtils.getDateFormat(time+"24","yyyyMMdd").after(nowDate)){
            attendMonthVo.setTwenty_four(day);
        }
        if( CommonUtils.getDateFormat(time+"25","yyyyMMdd").after(nowDate)){
            attendMonthVo.setTwenty_five(day);
        }
        if( CommonUtils.getDateFormat(time+"26","yyyyMMdd").after(nowDate)){
            attendMonthVo.setTwenty_six(day);
        }
        if( CommonUtils.getDateFormat(time+"27","yyyyMMdd").after(nowDate)){
            attendMonthVo.setTwenty_seven(day);
        }
        if( CommonUtils.getDateFormat(time+"28","yyyyMMdd").after(nowDate)){
            attendMonthVo.setTwenty_eight(day);
        }
        if( CommonUtils.getDateFormat(time+"29","yyyyMMdd").after(nowDate)){
            attendMonthVo.setTwenty_nine(day);
        }
        if( CommonUtils.getDateFormat(time+"30","yyyyMMdd").after(nowDate)){
            attendMonthVo.setThirty(day);
        }
        if( CommonUtils.getDateFormat(time+"31","yyyyMMdd").after(nowDate)){
            attendMonthVo.setThirty_one(day);
        }
    }
    public static void setDay(AttendMonthVo attendMonthVo, String time, String day) {
        Date nowDate = new Date();
        if(time.endsWith("01")){
            attendMonthVo.setOne(day);
        }
        if(time.endsWith("02") ){
            attendMonthVo.setTwo(day);
        }
        if(time.endsWith("03") ){
            attendMonthVo.setThree(day);
        }
        if(time.endsWith("04") ){
            attendMonthVo.setFour(day);
        }
        if(time.endsWith("05") ){
            attendMonthVo.setFive(day);
        }
        if(time.endsWith("06") ){
            attendMonthVo.setSix(day);
        }
        if(time.endsWith("07") ){
            attendMonthVo.setSeven(day);
        }
        if(time.endsWith("08") ){
            attendMonthVo.setEight(day);
        }
        if(time.endsWith("09") ){
            attendMonthVo.setNine(day);
        }
        if(time.endsWith("10") ){
            attendMonthVo.setTen(day);
        }
        if(time.endsWith("11") ){
            attendMonthVo.setEleven(day);
        }
        if(time.endsWith("12")){
            attendMonthVo.setTwelve(day);
        }
        if(time.endsWith("13")){
            attendMonthVo.setThirteen(day);
        }
        if(time.endsWith("14")){
            attendMonthVo.setFourteen(day);
        }
        if(time.endsWith("15")){
            attendMonthVo.setFifteen(day);
        }
        if(time.endsWith("16")){
            attendMonthVo.setSixteen(day);
        }
        if(time.endsWith("17")){
            attendMonthVo.setSeventeen(day);
        }
        if(time.endsWith("18")){
            attendMonthVo.setEighteen(day);
        }
        if(time.endsWith("19")){
            attendMonthVo.setNineteen(day);
        }
        if(time.endsWith("20")){
            attendMonthVo.setTwenty(day);
        }
        if(time.endsWith("21") ){
            attendMonthVo.setTwenty_one(day);
        }
        if(time.endsWith("22") ){
            attendMonthVo.setTwenty_two(day);
        }
        if(time.endsWith("23") ){
            attendMonthVo.setTwenty_three(day);
        }
        if(time.endsWith("24") ){
            attendMonthVo.setTwenty_four(day);
        }
        if(time.endsWith("25") ){
            attendMonthVo.setTwenty_five(day);
        }
        if(time.endsWith("26") ){
            attendMonthVo.setTwenty_six(day);
        }
        if(time.endsWith("27")){
            attendMonthVo.setTwenty_seven(day);
        }
        if(time.endsWith("28") ){
            attendMonthVo.setTwenty_eight(day);
        }
        if(time.endsWith("29") ){
            attendMonthVo.setTwenty_nine(day);
        }
        if(time.endsWith("30") ){
            attendMonthVo.setThirty(day);
        }
        if(time.endsWith("31") ){
            attendMonthVo.setThirty_one(day);
        }
    }
    public static void setLeave(AttendMonthVo attendMonthVo, int time,String day) {
        if(time==1){
            attendMonthVo.setOne(day);
        }
        if(time==2){
            attendMonthVo.setTwo(day);
        }
        if(time==3 ){
            attendMonthVo.setThree(day);
        }
        if(time==4 ){
            attendMonthVo.setFour(day);
        }
        if(time==5 ){
            attendMonthVo.setFive(day);
        }
        if(time==6 ){
            attendMonthVo.setSix(day);
        }
        if(time== 7){
            attendMonthVo.setSeven(day);
        }
        if(time==8  ){
            attendMonthVo.setEight(day);
        }
        if(time==9  ){
            attendMonthVo.setNine(day);
        }
        if(time==10  ){
            attendMonthVo.setTen(day);
        }
        if(time==11  ){
            attendMonthVo.setEleven(day);
        }
        if(time==12 ){
            attendMonthVo.setTwelve(day);
        }
        if(time==13 ){
            attendMonthVo.setThirteen(day);
        }
        if(time==14 ){
            attendMonthVo.setFourteen(day);
        }
        if(time==15 ){
            attendMonthVo.setFifteen(day);
        }
        if(time==16 ){
            attendMonthVo.setSixteen(day);
        }
        if(time==17 ){
            attendMonthVo.setSeventeen(day);
        }
        if(time==18 ){
            attendMonthVo.setEighteen(day);
        }
        if(time==19 ){
            attendMonthVo.setNineteen(day);
        }
        if(time==20 ){
            attendMonthVo.setTwenty(day);
        }
        if(time==21  ){
            attendMonthVo.setTwenty_one(day);
        }
        if(time==22  ){
            attendMonthVo.setTwenty_two(day);
        }
        if(time==23  ){
            attendMonthVo.setTwenty_three(day);
        }
        if(time==24  ){
            attendMonthVo.setTwenty_four(day);
        }
        if(time==25  ){
            attendMonthVo.setTwenty_five(day);
        }
        if(time==26  ){
            attendMonthVo.setTwenty_six(day);
        }
        if(time==27 ){
            attendMonthVo.setTwenty_seven(day);
        }
        if(time==28  ){
            attendMonthVo.setTwenty_eight(day);
        }
        if(time==29  ){
            attendMonthVo.setTwenty_nine(day);
        }
        if(time==30  ){
            attendMonthVo.setThirty(day);
        }
        if(time==31  ){
            attendMonthVo.setThirty_one(day);
        }
    }

    public static void setNoAttend(AttendMonthVo attendMonthVo, String day) {
        if(attendMonthVo.getOne()==null){
            attendMonthVo.setOne(day);
        }
        if(attendMonthVo.getTwo()==null ){
            attendMonthVo.setTwo(day);
        }
        if(attendMonthVo.getThree()==null ){
            attendMonthVo.setThree(day);
        }
        if(attendMonthVo.getFour()==null ){
            attendMonthVo.setFour(day);
        }
        if(attendMonthVo.getFive()==null ){
            attendMonthVo.setFive(day);
        }
        if(attendMonthVo.getSix()==null ){
            attendMonthVo.setSix(day);
        }
        if(attendMonthVo.getSeven()==null ){
            attendMonthVo.setSeven(day);
        }
        if(attendMonthVo.getEight()==null ){
            attendMonthVo.setEight(day);
        }
        if(attendMonthVo.getNine()==null ){
            attendMonthVo.setNine(day);
        }
        if(attendMonthVo.getTen()==null ){
            attendMonthVo.setTen(day);
        }
        if(attendMonthVo.getEleven()==null ){
            attendMonthVo.setEleven(day);
        }
        if(attendMonthVo.getTwelve()==null){
            attendMonthVo.setTwelve(day);
        }
        if(attendMonthVo.getThirteen()==null){
            attendMonthVo.setThirteen(day);
        }
        if(attendMonthVo.getFourteen()==null){
            attendMonthVo.setFourteen(day);
        }
        if(attendMonthVo.getFifteen()==null){
            attendMonthVo.setFifteen(day);
        }
        if(attendMonthVo.getSixteen()==null){
            attendMonthVo.setSixteen(day);
        }
        if(attendMonthVo.getSeventeen()==null){
            attendMonthVo.setSeventeen(day);
        }
        if(attendMonthVo.getEighteen()==null){
            attendMonthVo.setEighteen(day);
        }
        if(attendMonthVo.getNineteen()==null){
            attendMonthVo.setNineteen(day);
        }
        if(attendMonthVo.getTwenty()==null){
            attendMonthVo.setTwenty(day);
        }
        if(attendMonthVo.getTwenty_one()==null ){
            attendMonthVo.setTwenty_one(day);
        }
        if(attendMonthVo.getTwenty_two()==null){
            attendMonthVo.setTwenty_two(day);
        }
        if(attendMonthVo.getTwenty_three()==null){
            attendMonthVo.setTwenty_three(day);
        }
        if(attendMonthVo.getTwenty_four()==null){
            attendMonthVo.setTwenty_four(day);
        }
        if(attendMonthVo.getTwenty_five()==null ){
            attendMonthVo.setTwenty_five(day);
        }
        if(attendMonthVo.getTwenty_six()==null ){
            attendMonthVo.setTwenty_six(day);
        }
        if(attendMonthVo.getTwenty_seven()==null){
            attendMonthVo.setTwenty_seven(day);
        }
        if(attendMonthVo.getTwenty_eight()==null ){
            attendMonthVo.setTwenty_eight(day);
        }
        if(attendMonthVo.getTwenty_nine()==null){
            attendMonthVo.setTwenty_nine(day);
        }
        if(attendMonthVo.getThirty()==null){
            attendMonthVo.setThirty(day);
        }
        if(attendMonthVo.getThirty_one()==null ){
            attendMonthVo.setThirty_one(day);
        }
    }
    public static void findleave(AttendMonthVo attendMonthVo, String day) {
        if(attendMonthVo.getOne()==null){
            attendMonthVo.setOne(day);
        }
        if(attendMonthVo.getTwo()==null ){
            attendMonthVo.setTwo(day);
        }
        if(attendMonthVo.getThree()==null ){
            attendMonthVo.setThree(day);
        }
        if(attendMonthVo.getFour()==null ){
            attendMonthVo.setFour(day);
        }
        if(attendMonthVo.getFive()==null ){
            attendMonthVo.setFive(day);
        }
        if(attendMonthVo.getSix()==null ){
            attendMonthVo.setSix(day);
        }
        if(attendMonthVo.getSeven()==null ){
            attendMonthVo.setSeven(day);
        }
        if(attendMonthVo.getEight()==null ){
            attendMonthVo.setEight(day);
        }
        if(attendMonthVo.getNine()==null ){
            attendMonthVo.setNine(day);
        }
        if(attendMonthVo.getTen()==null ){
            attendMonthVo.setTen(day);
        }
        if(attendMonthVo.getEleven()==null ){
            attendMonthVo.setEleven(day);
        }
        if(attendMonthVo.getTwelve()==null){
            attendMonthVo.setTwelve(day);
        }
        if(attendMonthVo.getThirteen()==null){
            attendMonthVo.setThirteen(day);
        }
        if(attendMonthVo.getFourteen()==null){
            attendMonthVo.setFourteen(day);
        }
        if(attendMonthVo.getFifteen()==null){
            attendMonthVo.setFifteen(day);
        }
        if(attendMonthVo.getSixteen()==null){
            attendMonthVo.setSixteen(day);
        }
        if(attendMonthVo.getSeventeen()==null){
            attendMonthVo.setSeventeen(day);
        }
        if(attendMonthVo.getEighteen()==null){
            attendMonthVo.setEighteen(day);
        }
        if(attendMonthVo.getNineteen()==null){
            attendMonthVo.setNineteen(day);
        }
        if(attendMonthVo.getTwenty()==null){
            attendMonthVo.setTwenty(day);
        }
        if(attendMonthVo.getTwenty_one()==null ){
            attendMonthVo.setTwenty_one(day);
        }
        if(attendMonthVo.getTwenty_two()==null){
            attendMonthVo.setTwenty_two(day);
        }
        if(attendMonthVo.getTwenty_three()==null){
            attendMonthVo.setTwenty_three(day);
        }
        if(attendMonthVo.getTwenty_four()==null){
            attendMonthVo.setTwenty_four(day);
        }
        if(attendMonthVo.getTwenty_five()==null ){
            attendMonthVo.setTwenty_five(day);
        }
        if(attendMonthVo.getTwenty_six()==null ){
            attendMonthVo.setTwenty_six(day);
        }
        if(attendMonthVo.getTwenty_seven()==null){
            attendMonthVo.setTwenty_seven(day);
        }
        if(attendMonthVo.getTwenty_eight()==null ){
            attendMonthVo.setTwenty_eight(day);
        }
        if(attendMonthVo.getTwenty_nine()==null){
            attendMonthVo.setTwenty_nine(day);
        }
        if(attendMonthVo.getThirty()==null){
            attendMonthVo.setThirty(day);
        }
        if(attendMonthVo.getThirty_one()==null ){
            attendMonthVo.setThirty_one(day);
        }
    }

    public static void setBatchDay(BatchAttendMonthVo attendMonthVo, String time, String day) {
        Date nowDate = new Date();
        if(time.endsWith("01")){
            attendMonthVo.setOne(day);
        }
        if(time.endsWith("02") ){
            attendMonthVo.setTwo(day);
        }
        if(time.endsWith("03") ){
            attendMonthVo.setThree(day);
        }
        if(time.endsWith("04") ){
            attendMonthVo.setFour(day);
        }
        if(time.endsWith("05") ){
            attendMonthVo.setFive(day);
        }
        if(time.endsWith("06") ){
            attendMonthVo.setSix(day);
        }
        if(time.endsWith("07") ){
            attendMonthVo.setSeven(day);
        }
        if(time.endsWith("08") ){
            attendMonthVo.setEight(day);
        }
        if(time.endsWith("09") ){
            attendMonthVo.setNine(day);
        }
        if(time.endsWith("10") ){
            attendMonthVo.setTen(day);
        }
        if(time.endsWith("11") ){
            attendMonthVo.setEleven(day);
        }
        if(time.endsWith("12")){
            attendMonthVo.setTwelve(day);
        }
        if(time.endsWith("13")){
            attendMonthVo.setThirteen(day);
        }
        if(time.endsWith("14")){
            attendMonthVo.setFourteen(day);
        }
        if(time.endsWith("15")){
            attendMonthVo.setFifteen(day);
        }
        if(time.endsWith("16")){
            attendMonthVo.setSixteen(day);
        }
        if(time.endsWith("17")){
            attendMonthVo.setSeventeen(day);
        }
        if(time.endsWith("18")){
            attendMonthVo.setEighteen(day);
        }
        if(time.endsWith("19")){
            attendMonthVo.setNineteen(day);
        }
        if(time.endsWith("20")){
            attendMonthVo.setTwenty(day);
        }
        if(time.endsWith("21") ){
            attendMonthVo.setTwenty_one(day);
        }
        if(time.endsWith("22") ){
            attendMonthVo.setTwenty_two(day);
        }
        if(time.endsWith("23") ){
            attendMonthVo.setTwenty_three(day);
        }
        if(time.endsWith("24") ){
            attendMonthVo.setTwenty_four(day);
        }
        if(time.endsWith("25") ){
            attendMonthVo.setTwenty_five(day);
        }
        if(time.endsWith("26") ){
            attendMonthVo.setTwenty_six(day);
        }
        if(time.endsWith("27")){
            attendMonthVo.setTwenty_seven(day);
        }
        if(time.endsWith("28") ){
            attendMonthVo.setTwenty_eight(day);
        }
        if(time.endsWith("29") ){
            attendMonthVo.setTwenty_nine(day);
        }
        if(time.endsWith("30") ){
            attendMonthVo.setThirty(day);
        }
        if(time.endsWith("31") ){
            attendMonthVo.setThirty_one(day);
        }
    }

    public static void setBatchLeave(BatchAttendMonthVo attendMonthVo, int time, String day) {
        if(time==1){
            attendMonthVo.setOne(day);
        }
        if(time==2){
            attendMonthVo.setTwo(day);
        }
        if(time==3 ){
            attendMonthVo.setThree(day);
        }
        if(time==4 ){
            attendMonthVo.setFour(day);
        }
        if(time==5 ){
            attendMonthVo.setFive(day);
        }
        if(time==6 ){
            attendMonthVo.setSix(day);
        }
        if(time== 7){
            attendMonthVo.setSeven(day);
        }
        if(time==8  ){
            attendMonthVo.setEight(day);
        }
        if(time==9  ){
            attendMonthVo.setNine(day);
        }
        if(time==10  ){
            attendMonthVo.setTen(day);
        }
        if(time==11  ){
            attendMonthVo.setEleven(day);
        }
        if(time==12 ){
            attendMonthVo.setTwelve(day);
        }
        if(time==13 ){
            attendMonthVo.setThirteen(day);
        }
        if(time==14 ){
            attendMonthVo.setFourteen(day);
        }
        if(time==15 ){
            attendMonthVo.setFifteen(day);
        }
        if(time==16 ){
            attendMonthVo.setSixteen(day);
        }
        if(time==17 ){
            attendMonthVo.setSeventeen(day);
        }
        if(time==18 ){
            attendMonthVo.setEighteen(day);
        }
        if(time==19 ){
            attendMonthVo.setNineteen(day);
        }
        if(time==20 ){
            attendMonthVo.setTwenty(day);
        }
        if(time==21  ){
            attendMonthVo.setTwenty_one(day);
        }
        if(time==22  ){
            attendMonthVo.setTwenty_two(day);
        }
        if(time==23  ){
            attendMonthVo.setTwenty_three(day);
        }
        if(time==24  ){
            attendMonthVo.setTwenty_four(day);
        }
        if(time==25  ){
            attendMonthVo.setTwenty_five(day);
        }
        if(time==26  ){
            attendMonthVo.setTwenty_six(day);
        }
        if(time==27 ){
            attendMonthVo.setTwenty_seven(day);
        }
        if(time==28  ){
            attendMonthVo.setTwenty_eight(day);
        }
        if(time==29  ){
            attendMonthVo.setTwenty_nine(day);
        }
        if(time==30  ){
            attendMonthVo.setThirty(day);
        }
        if(time==31  ){
            attendMonthVo.setThirty_one(day);
        }
    }

    public static void setBatchBlockDay(BatchAttendMonthVo attendMonthVo, String time, String day) {
        Date nowDate = new Date();
        if( CommonUtils.getDateFormat(time+"01","yyyyMMdd").after(nowDate)){
            attendMonthVo.setOne(day);
        }
        if( CommonUtils.getDateFormat(time+"02","yyyyMMdd").after(nowDate)){
            attendMonthVo.setTwo(day);
        }
        if( CommonUtils.getDateFormat(time+"03","yyyyMMdd").after(nowDate)){
            attendMonthVo.setThree(day);
        }
        if( CommonUtils.getDateFormat(time+"04","yyyyMMdd").after(nowDate)){
            attendMonthVo.setFour(day);
        }
        if( CommonUtils.getDateFormat(time+"05","yyyyMMdd").after(nowDate)){
            attendMonthVo.setFive(day);
        }
        if( CommonUtils.getDateFormat(time+"06","yyyyMMdd").after(nowDate)){
            attendMonthVo.setSix(day);
        }
        if( CommonUtils.getDateFormat(time+"07","yyyyMMdd").after(nowDate)){
            attendMonthVo.setSeven(day);
        }
        if( CommonUtils.getDateFormat(time+"08","yyyyMMdd").after(nowDate)){
            attendMonthVo.setEight(day);
        }
        if( CommonUtils.getDateFormat(time+"09","yyyyMMdd").after(nowDate)){
            attendMonthVo.setNine(day);
        }
        if( CommonUtils.getDateFormat(time+"10","yyyyMMdd").after(nowDate)){
            attendMonthVo.setTen(day);
        }
        if( CommonUtils.getDateFormat(time+"11","yyyyMMdd").after(nowDate)){
            attendMonthVo.setEleven(day);
        }
        if( CommonUtils.getDateFormat(time+"12","yyyyMMdd").after(nowDate)){
            attendMonthVo.setTwelve(day);
        }
        if( CommonUtils.getDateFormat(time+"13","yyyyMMdd").after(nowDate)){
            attendMonthVo.setThirteen(day);
        }
        if( CommonUtils.getDateFormat(time+"14","yyyyMMdd").after(nowDate)){
            attendMonthVo.setFourteen(day);
        }
        if( CommonUtils.getDateFormat(time+"15","yyyyMMdd").after(nowDate)){
            attendMonthVo.setFifteen(day);
        }
        if( CommonUtils.getDateFormat(time+"16","yyyyMMdd").after(nowDate)){
            attendMonthVo.setSixteen(day);
        }
        if( CommonUtils.getDateFormat(time+"17","yyyyMMdd").after(nowDate)){
            attendMonthVo.setSeventeen(day);
        }
        if( CommonUtils.getDateFormat(time+"18","yyyyMMdd").after(nowDate)){
            attendMonthVo.setEighteen(day);
        }
        if( CommonUtils.getDateFormat(time+"19","yyyyMMdd").after(nowDate)){
            attendMonthVo.setNineteen(day);
        }
        if( CommonUtils.getDateFormat(time+"20","yyyyMMdd").after(nowDate)){
            attendMonthVo.setTwenty(day);
        }
        if( CommonUtils.getDateFormat(time+"21","yyyyMMdd").after(nowDate)){
            attendMonthVo.setTwenty_one(day);
        }
        if( CommonUtils.getDateFormat(time+"22","yyyyMMdd").after(nowDate)){
            attendMonthVo.setTwenty_two(day);
        }
        if( CommonUtils.getDateFormat(time+"23","yyyyMMdd").after(nowDate)){
            attendMonthVo.setTwenty_three(day);
        }
        if( CommonUtils.getDateFormat(time+"24","yyyyMMdd").after(nowDate)){
            attendMonthVo.setTwenty_four(day);
        }
        if( CommonUtils.getDateFormat(time+"25","yyyyMMdd").after(nowDate)){
            attendMonthVo.setTwenty_five(day);
        }
        if( CommonUtils.getDateFormat(time+"26","yyyyMMdd").after(nowDate)){
            attendMonthVo.setTwenty_six(day);
        }
        if( CommonUtils.getDateFormat(time+"27","yyyyMMdd").after(nowDate)){
            attendMonthVo.setTwenty_seven(day);
        }
        if( CommonUtils.getDateFormat(time+"28","yyyyMMdd").after(nowDate)){
            attendMonthVo.setTwenty_eight(day);
        }
        if( CommonUtils.getDateFormat(time+"29","yyyyMMdd").after(nowDate)){
            attendMonthVo.setTwenty_nine(day);
        }
        if( CommonUtils.getDateFormat(time+"30","yyyyMMdd").after(nowDate)){
            attendMonthVo.setThirty(day);
        }
        if( CommonUtils.getDateFormat(time+"31","yyyyMMdd").after(nowDate)){
            attendMonthVo.setThirty_one(day);
        }
    }


    public static void setBatchNoAttend(BatchAttendMonthVo attendMonthVo, String day) {
        if(attendMonthVo.getOne()==null){
            attendMonthVo.setOne(day);
        }
        if(attendMonthVo.getTwo()==null ){
            attendMonthVo.setTwo(day);
        }
        if(attendMonthVo.getThree()==null ){
            attendMonthVo.setThree(day);
        }
        if(attendMonthVo.getFour()==null ){
            attendMonthVo.setFour(day);
        }
        if(attendMonthVo.getFive()==null ){
            attendMonthVo.setFive(day);
        }
        if(attendMonthVo.getSix()==null ){
            attendMonthVo.setSix(day);
        }
        if(attendMonthVo.getSeven()==null ){
            attendMonthVo.setSeven(day);
        }
        if(attendMonthVo.getEight()==null ){
            attendMonthVo.setEight(day);
        }
        if(attendMonthVo.getNine()==null ){
            attendMonthVo.setNine(day);
        }
        if(attendMonthVo.getTen()==null ){
            attendMonthVo.setTen(day);
        }
        if(attendMonthVo.getEleven()==null ){
            attendMonthVo.setEleven(day);
        }
        if(attendMonthVo.getTwelve()==null){
            attendMonthVo.setTwelve(day);
        }
        if(attendMonthVo.getThirteen()==null){
            attendMonthVo.setThirteen(day);
        }
        if(attendMonthVo.getFourteen()==null){
            attendMonthVo.setFourteen(day);
        }
        if(attendMonthVo.getFifteen()==null){
            attendMonthVo.setFifteen(day);
        }
        if(attendMonthVo.getSixteen()==null){
            attendMonthVo.setSixteen(day);
        }
        if(attendMonthVo.getSeventeen()==null){
            attendMonthVo.setSeventeen(day);
        }
        if(attendMonthVo.getEighteen()==null){
            attendMonthVo.setEighteen(day);
        }
        if(attendMonthVo.getNineteen()==null){
            attendMonthVo.setNineteen(day);
        }
        if(attendMonthVo.getTwenty()==null){
            attendMonthVo.setTwenty(day);
        }
        if(attendMonthVo.getTwenty_one()==null ){
            attendMonthVo.setTwenty_one(day);
        }
        if(attendMonthVo.getTwenty_two()==null){
            attendMonthVo.setTwenty_two(day);
        }
        if(attendMonthVo.getTwenty_three()==null){
            attendMonthVo.setTwenty_three(day);
        }
        if(attendMonthVo.getTwenty_four()==null){
            attendMonthVo.setTwenty_four(day);
        }
        if(attendMonthVo.getTwenty_five()==null ){
            attendMonthVo.setTwenty_five(day);
        }
        if(attendMonthVo.getTwenty_six()==null ){
            attendMonthVo.setTwenty_six(day);
        }
        if(attendMonthVo.getTwenty_seven()==null){
            attendMonthVo.setTwenty_seven(day);
        }
        if(attendMonthVo.getTwenty_eight()==null ){
            attendMonthVo.setTwenty_eight(day);
        }
        if(attendMonthVo.getTwenty_nine()==null){
            attendMonthVo.setTwenty_nine(day);
        }
        if(attendMonthVo.getThirty()==null){
            attendMonthVo.setThirty(day);
        }
        if(attendMonthVo.getThirty_one()==null ){
            attendMonthVo.setThirty_one(day);
        }
    }
}
